/* 导入现代化样式 */
@import './styles/modern.css';

:root {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  font-weight: 400;

  color-scheme: light;
  color: #2c3e50;
  background-color: #f8fafc;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}

body {
  margin: 0;
  display: block;
  min-width: 320px;
  min-height: 100vh;
  font-family: var(--font-family);
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  background-attachment: fixed;
}

h1 {
  font-size: 2.5em;
  line-height: 1.2;
  color: var(--dark-color);
  font-weight: 700;
}

h2 {
  font-size: 2em;
  line-height: 1.3;
  color: var(--dark-color);
  font-weight: 600;
}

h3 {
  font-size: 1.5em;
  line-height: 1.4;
  color: var(--dark-color);
  font-weight: 500;
}

#app {
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* 选择文本样式 */
::selection {
  background: var(--primary-light);
  color: white;
}

/* 焦点样式 */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* 过渡动画 */
* {
  transition: all 0.3s ease;
}

/* 链接样式 */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}
